package com.jifujun.junbatis.base.service;


import com.jifujun.junbatis.base.model.RootObject;

import java.util.List;

/**
 * Create with IntelliJ IDEA
 * Project Name: junbatis
 * Package Name: club.emergency.junbatis.base.club.emergency.staff.service
 * Date: 2018/3/30 08:19
 * User: 快乐的小菌菌
 * Description: 通用Service接口，所有Service接口统一继承本接口
 */
public interface GenericService<ID, T extends RootObject> {

    T getById(ID id);

    List<T> selectList(ConditionConstructor conditionConstructor);

    PageResult selectInPage(Page page);

    List<T> selectListForMore();

    void insertOne(T t);

    void insertMore(ConditionConstructor conditionConstructor);

    void deleteById(ID id);

    void deleteByCondition(ConditionConstructor conditionConstructor);

    void removeById(ID id);

    void updateById(ID id, T t);

    void updateByCondition(ConditionConstructor conditionConstructor);
}
